package edu.lfsfxy.myschool.dao;
import edu.lfsfxy.myschool.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao {
   @Insert("insert into student(sno, sname, phone, address, birthday, email) VALUES" +
           " (#{sno},#{sname},#{phone},#{address},#{birthday},#{email})")
   int add(Student student);
   @Select("select * from student")
   List<Student> findAll();
}
